package com.youlu.campus.service.ca;

import com.youlu.campus.entity.CaGroupInfo;
import com.youlu.campus.entity.VO.req.CaGroupInfoQueryVO;
import com.youlu.campus.entity.VO.req.CopyCa;
import com.youlu.campus.entity.enums.TaskBizType;
import org.springframework.data.domain.Page;

import java.util.List;

public interface CaGroupInfoService {

    Page<CaGroupInfo> list(CaGroupInfoQueryVO req);

    boolean delete(String tenantId, String id);

    boolean create(CaGroupInfo req);

    boolean update(CaGroupInfo req);

    CaGroupInfo findOne(String id);

    CaGroupInfo find(String activityId, TaskBizType taskBizType);

    /**
     * 复制证书序列
     * @param copyActivityId 复制活动ID
     * @param newActivityId 新活动
     */
    void copyCaGroupInfo(String copyActivityId,String newActivityId);

    /**
     * 复制证书序列
     * @param req
     */
    void copyCa(CopyCa req);

    List<CaGroupInfo> find(String activityId);
}
